public class Player {
	private String name;
	private int score;
	private int moveNumber;
	private RPSEnum move;

	Player(String name, RPSEnum move) {
		this.name = name;
		this.move = move;

	}

	Player(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public int getMoveNumber() {
		return moveNumber;
	}

	public RPSEnum getNextMove() {

		for (int i = 0; i < 10; i++) {
			moveNumber = (int) (Math.random() * (2 - 0) + 0);
			 System.out.println( moveNumber);

			if (moveNumber == 0) {
				return RPSEnum.ROCK;
			}

			if (moveNumber == 1) {
				return RPSEnum.PAPER;
			}

			if (moveNumber == 2) {
				return RPSEnum.SCISSORS;
			}
		}

		return null;

	}

}
